package com.listeningframework.boot.commons.httpclient;

import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;

import javax.net.ssl.X509TrustManager;

/**
 * 
 * Anonymous X509 TrustManager
 *
 * @author lixining
 * @version $Id: AnonymousX509TrustManager.java, v 0.1 2016年8月4日 下午6:29:42 lixining Exp $
 */
public class AnonymousX509TrustManager implements X509TrustManager {

    @Override
    public void checkClientTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {
    }

    @Override
    public void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {
    }

    @Override
    public X509Certificate[] getAcceptedIssuers() {
        return null;
    }

}
